﻿
@{
    ViewData["Title"] = "类别汇总";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model IEnumerable<IVBlog.Models.Category>
<div class="card">
    <div class="card-header bg-white text-center">
        <h2><i class="bi bi-folder2-open"></i>&nbsp;分类</h2>
        <h6>共计<span>@ViewBag.CategoryNum</span>个分类</h6>
        <p id="hitokoto_text">:D 一言获取中...</p>
    </div>
    <div class="card-body">
        @foreach (var item in Model)
        {
            <div class="card" style="margin:30px;">
                <div class="card-body">
                    <h3><i class="bi bi-folder2-open"></i>&nbsp;<a href="/Home/Type/@item.CategoryId" class="card-link">分类：<span>@item.Cname</span></a></h3>
                    <p><i class="bi bi-files">&nbsp;共<span>@item.Cnums</span>篇文章</i></p>
                </div>
            </div>
        }
    </div>
</div>
<!--<div class="card" style="margin:50px">
    <div class="card-header text-center">
        <h5 class="card-title"><a href="~/Home/Article" class="card-link">这是文章标题哦</a></h5>
    </div>
    <div class="card-body text-center">
        <p class="card-text">这是文章内容哦</p>
        <span data-toggle="tooltip" title="发布的日期"><i class="bi bi-calendar-minus"></i>&nbsp;发布时间&nbsp;&nbsp;</span>
        <span data-toggle="tooltip" title="最后一次修改时间"><i class="bi bi-calendar-week"></i>&nbsp;修改时间&nbsp;&nbsp;</span>
        <p class="card-text">
            <a href="#" class="card-link"><i class="bi bi-person"></i>&nbsp;发布者</a>&nbsp;&nbsp;
            <i class="bi bi-hand-thumbs-up"></i>&nbsp;<span data-toggle="tooltip" title="点赞数">点赞数</span>&nbsp;&nbsp;
            <i class="bi bi-chat-left-dots"></i>&nbsp;<span data-toggle="tooltip" title="评论数">评论数</span>&nbsp;&nbsp;
        </p>
    </div>
    <div class="card-footer bg-white">
        <i class="bi bi-folder2"></i><span class="card-text">&nbsp;<a href="#" class="card-link">类别</a></span>
    </div>
</div>
<div class="card" style="margin:50px">
    <div class="card-header text-center">
        <h5 class="card-title"><a href="~/Home/Article" class="card-link">这是文章标题哦</a></h5>
    </div>
    <div class="card-body text-center">
        <p class="card-text">这是文章内容哦</p>
        <span data-toggle="tooltip" title="发布的日期"><i class="bi bi-calendar-minus"></i>&nbsp;发布时间&nbsp;&nbsp;</span>
        <span data-toggle="tooltip" title="最后一次修改时间"><i class="bi bi-calendar-week"></i>&nbsp;修改时间&nbsp;&nbsp;</span>
        <p class="card-text">
            <a href="#" class="card-link"><i class="bi bi-person"></i>&nbsp;发布者</a>&nbsp;&nbsp;
            <i class="bi bi-hand-thumbs-up"></i>&nbsp;<span data-toggle="tooltip" title="点赞数">点赞数</span>&nbsp;&nbsp;
            <i class="bi bi-chat-left-dots"></i>&nbsp;<span data-toggle="tooltip" title="评论数">评论数</span>&nbsp;&nbsp;
        </p>
    </div>
    <div class="card-footer bg-white">
        <i class="bi bi-folder2"></i><span class="card-text">&nbsp;<a href="#" class="card-link">类别</a></span>
    </div>
</div>-->
